#ifndef FORM_H
#define FORM_H

//#define DEBUG_MODE

#include <QtGui/QWidget>
#include <QKeyEvent>
#include <QMessageBox>
#include "ui_form.h"
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QDialog>
#include <QTextEdit>
#include <QHBoxLayout>
#include <QLabel>

#include <math.h>

class Form : public QWidget ,private Ui::Form {
    Q_OBJECT
public:
    explicit Form(QWidget *parent = 0);
    virtual ~Form();

private slots:
    QString verification();
    void on_button0_clicked();
    void on_button1_clicked();
    void on_button2_clicked();
    void on_button3_clicked();
    void on_button4_clicked();
    void on_button5_clicked();
    void on_button6_clicked();
    void on_button7_clicked();
    void on_button8_clicked();
    void on_button9_clicked();
    void on_retourArriere_clicked();
    void on_button_plus_clicked();
    void on_button_egale_clicked();
    void on_button_moins_clicked();
    void on_button_multiplication_clicked();
    void on_button_division_clicked();
    void on_button_module_clicked();
    void on_C_clicked();
    void on_CE_clicked();
    void on_button_positive_negative_clicked();
    void on_MS_clicked();
    void on_MC_clicked();
    void on_MR_clicked();
    void on_Mplus_clicked();
    void on_button1_diviser_x_clicked();
    void on_button_racine_carre_clicked();

public slots:
    void action_copier();
    void function_opaque(int);

protected:
    virtual void changeEvent(QEvent *e);
    void keyPressEvent(QKeyEvent *);
   // void resizeEvent(QResizeEvent *);


private:
    Ui::Form *m_ui;

    float num_first,num_second,last_resultat,
    m_memoire,num_two_tempo,tempo,m_memoire_tempo;

    QString operateur_;

    int indice_oper,num_log;

    bool passe;

    QMenuBar *menu_bar;

    QMenu *menu_edition;
    QMenu *menu_affichage;
    QMenu *menu_aide;

    QAction *m_action_copier;
    QAction *m_action_coller;
    QAction *m_action_rubrique_aide;
    QAction *m_action_about;

    QDialog *m_dialog_about;
};

#endif // FORM_H
